<template>
    <view class="page">
        <back :title="systemSta == '1'? '用户协议' : '关于六久六智运'" :isBack="true" :isBg="false"></back>
        <scroll-view scroll-y class="content_box">
            <view class="section" v-html="content">
            </view>
        </scroll-view>


    </view>
</template>
<script>

import back from "@/components/goback/goback"
export default {
    components: {
        back
    },
    data() {
        return {
            content: '',
            id: '',
            systemSta: '',//1:运渣包协议2：关于六久六智运
        }
    },
    onLoad(options) {
        this.systemSta = options.systemSta
    },
    onShow() {
        if (this.systemSta == '1') {
            this.geuProtocol()
        } else if (this.systemSta == '2') {
            this.geusystemAbout()
        } else {

        }

    },
    methods: {
        geuProtocol() {//运渣包协议
            this.$Request.post(this.$api.user.userProtocol).then(res => {
                if (res.code == 200) {
                    this.content = res.data.protocol
                }
            })
        },
        geusystemAbout() {//运渣包协议
            this.$Request.post(this.$api.user.systemAbout).then(res => {
                if (res.code == 200) {
                    this.content = res.data.about
                }
            })
        }
    }
}
</script>
<style lang="scss" scoped>
.page {
    width: 100vw;
    min-height: 100vh;

    .content_box {
        width: 100%;
        height: calc(100vh - 180rpx);
        box-sizing: border-box;
        padding: 20rpx;
    }




}
</style>
